Ad
  • Custom User Avatar

    Think of the solution where you don't have to use strings at all.
    You have a number and you can use arithmetic operations to get its digits. That should be faster.