Improved answer for Adding Reversed Numbers (SPOJ).