You are given a string s and an array shifts of the same length.
Call the shift of a letter the next letter in the alphabet (wrapping 'z' → 'a').
For each i in [0..n-1], the i-th shift operation shifts each of s[i..n-1] by one.
So after all operations, s[i] is shifted by sum(shifts[i..n-1]) positions.
Return the final string.
Input format: s|shift0|shift1|...|shiftn-1
Input: String s followed by shifts separated by '|'.
Output: The resulting string after all shifts.
Input: abc|3|5|9
Output: rpl
Explanation: Suffix sums: [17,14,9]. a+17=r, b+14=p, c+9=l → 'rpl'.Input: aaa|1|2|3
Output: gfd
Explanation: Suffix sums: [6,5,3]. a+6=g, a+5=f, a+3=d → 'gfd'.Input: xyz|3|5|9
Output: oli
Explanation: Suffix sums: [17,14,9]; with wrapping.1 <= s.length <= 10^5s consists of lowercase English lettersshifts[i] >= 0