My program is running and compiling the right answers but still failing all test cases

this is the link to my code, please check and tell what is the problem :confused: