olution for problem 15, this uses a recursive walk. the only other faster way to do it really is to use a formula. (which i know but don't want to post here)