Company: Oracle_16nov
Difficulty: medium
Roll the String Problem Description A single roll operation increments each character by one in a circular manner within the English alphabet (a-z). For example, 'a' becomes 'b', 'b' becomes 'c', and 'z' becomes 'a'. Given a string s and an array of integers roll , perform a roll operation on the first roll[i] characters of s for each element in the array. Function Description Complete the function rollTheString in the editor with the following parameter(s): string s : the string to operate on int roll[n] : an array where each element roll[i] specifies the number of characters from the beginning of the string to roll. n is the size of the array. Returns: string : the resulting string after all roll operations have been performed The C function signature provided in the editor is: char* rollTheString(char* s, int roll_count, int* roll) Examples Example 1: Input: s = "abz", roll = [3, 2, 1] Output: "dda" Explanation: roll[0] = 3 : Roll all three characters. 'abz' becomes 'bca'. roll[1] =