Few test cases failing

sol: https://ide.codingblocks.com/s/388447
prob: https://hack.codingblocks.com/app/contests/1975/558/problem

Here is your corrected code https://ide.codingblocks.com/s/388456

thanks, why wasn’t it working before?

Your loop was incorrect, n was varying. So I just checked for all values from 97 to 122(ascii values of lowercase)