Rat in a maze problem
Digit operations

1. Sum of digits
2. Decoding digits