Problem 12 works for test cases in problem statement, but returns 289 for 76576500 -- worth looking at, another day.