Test 2. Problem 1
Solution