Lambda Function If Statement Python Exercises Hackerrank