Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
The maximum length of number is really small.
Iterate through the digits of number and every time we see digit, try removing it.
To remove a character at index i, concatenate the substring from index 0 to i - 1 and the substring from index i + 1 to number.length - 1.