Map And Lambda Function Hackerrank Solution In Python For All Selected Lines