Have you ever seen those vaccum compressed towels, that look like a pill and after you add water became a towel?
That's our challenge for today. As usual shortest solution wins.
Task
You will receive an integer number and you will return a new number where each digit is repeated a number of times equals to its value.
Input:
42
Output:
444422
Note: