getting correct answer still not satisfying 4th condition