Python Programming Interview Question 4