Microsoft, Recently Asked Online Assessments in 24 Nov, 2025 | Roll the String | Final Discounted Price
Microsoft · Question · Posted Apr 2026
Question 1: Roll the String Problem Statement: 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 i in the array. Example s = 'abz' roll = [3, 2, 1] roll[0] = 3: Roll all three ...
The full answer & interview discussion are available to premium members.
Log in Create a free account