Map And Lambda In Python Hackerrank Solution