Code is running fine for sample input case but showing wrong-answer in other cases>please look into this a


use this code