Map And Lambda Function Hackerrank Solution In Python