Solutions for the tests



                                             Test 1

                                             Test 2