Added some solution to the problem 3
Finished solution to problem 3