added solution for problem 59
Added solution to problem 26