Rank of a Word

Problem Name:
Rank of a Word
Site:HackerEarth
Links:
Tags:
Problem setters: