Cyclically Increment the First k Letters of a String for Each Roll
Company: PayPal
Role: Software Engineer
Category: Coding & Algorithms
Difficulty: medium
Interview Round: Other
Overview: Each value in a roll array shifts the first k letters of a lowercase string forward by one, with z wrapping around to a, and the task is to return the string after every roll. It tests batching many overlapping prefix updates into one linear pass when the string and the roll list can each hold 100,000 entries.