Hashmap Functions Python Exercises Hackerrank