Solve the hd0j1010 with a recursive version