if-else pass some tests

if-else statement pass some tests