Doubt in this code

i am not getting any output through my code
can you tell my mistake
here is my code

still many of the test cases are failing through this code.