Final Exam (1995). Problem 1
Solution