The function will copy the character according to the position of the character itself in the string. The first character is displayed once, the second character is displayed twice, and so on.
Sample Code:
def oneOne(s):
# Enter your logic here...
Examples:
Input: 123
Output: '122333'
Explanation: 1 is displayed once, 2 is displayed twice, and 3 is displayed three times.
Input: 'Help'
Output: 'Heelllpppp'
Explanation: H is displayed once, e is displayed twice, l is displayed three times, and so on.