Given a non-negative integer, I need to return an array containing the digits of the initial number, considering that the initial number shall be less than 100,000. For example:
separateDigits(93) → {9, 3}
separateDigits(125) → {1, 2, 5}
separateDigits(732) → {7, 3, 2}
How do I separate the digits?