Code not working

@lakshit
your code is working now, you can have a look https://ide.codingblocks.com/s/253543
please from next time provide the code after indentation, it took me time to first indent then understand your code, because without indent, it is difficult to understand other people’s code.

@lakshit
there was a unnecessary semicolon at line 63 in your code which was causing the issue.

@lakshit
please mark the doubt as resolved if it is clear now.