i am able to get the correct output , but not able pass the conditions