solution for the second test 8087766