Please help!! getting correct answer but not able to pass conditions