Map And Lambda Function Hackerrank Solution For Python