Encrypt a string by repeating i-th character i times
Given string str, the task is to encrypt the string with the given encryption algorithm. The 1st character of the string will be repeated once in the encrypted string, the 2nd character will be repeated twice, â¦, nth character will be repeated n times. Examples: Input: str = "geeks" Output: geeeeekk