Added a potential solution to the second problem
Added a solution to the third and final problem