Modifying character in String
Given a string str, an integer index, and a character ch, the task is to modify the character at index in a given string and replace it with character ch. Examples: Input: str = "geeksforgeeks", index = 0, ch = 'G'Output: Geeksforgeeks Input: str = "spacing", index = 2, ch = '*'Output: sp*cing Appro