Code not working


Input test case is working properly ,but submission is giving run time error