i dont know why is this happening. whats wrong with my code or should i need to consider uppercase letters too. though its not mentioned in sample input.
2/5 testcases correct only
Take frequency array of size 256. You have to consider all characters.