The code returns the correct output still 4th condition is not satisfied.Please help what is the error in my program?