this is not passing any test case even though the sample output is showing the correct result. Please help