I did modulo 10 and devided by 10 in recursion for automation. the result is correct but the last test went wrong.