Prateek sir and coding ques


it is giving correct output but not passing any test cases

the code gives 100% correct