solution for the third test 4715838