Rotate a string left some number of times, then right some number of times — where the counts can be up to a billion.
Rotate a string left some number of times, then right some number of times — where the counts can be up to a billion.
Opens with the full question.