recursive solution to euler 15