Code flow as follows:
-> I have converted numbers into a string.
-> then find the length of the string
-> If any ...
For further actions, you may consider blocking this person and/or reporting abuse
Good work.
Some optimizations:
If the goal is to return the length of arr at the end, it’s simpler (and less memory) to increment a
countnumber variable rather than pushing to arr.You also don’t need to reset
tempas it will be reset each time the for block loops.