Spacing check needed

spacing error help. problem with tabs and spaces.

Hello @ayush_paharia2HU,

you might writing the wrong logic for spaces.
It is not generalized to all values of input.

You can refer to the following code:
https://ide.codingblocks.com/s/234150

Let me know if you face any issue.

Hope, this would help.