Output is correct but can't meet the fifth requirement. Please help. Thanks.