Add solution to Problem 1 in python. Answer is O(1)