Interview problems solved in Python.