prob8: Added solution
Added solution for problem 16.