Final Exam (1995). Problem 5
Solution