String Index Out of bound exception error

link: https://ide.codingblocks.com/s/145667
Kindl;y, go through it !.. Thanks !

Hi @Mayank2096,
Your input format is wrong. That’s why its going out of bounds. Rewrite your input format.