I tested it multiple times and it works fine, but the last condition is not met. Please help.