Test 2. Problem 2
Solution