TEST CASES GOING WRONG

Hi
Can you please help why all test cases are not getting right

@Prakhar_Nagpal,
Corrected code here.