Test 2. Problem 3
Solution