Adding solution to problem 81