Input: "cbac" Output: "bac" Expected: "acb"
Woops, I thought the question was asking about rotation not about substrings.
It's not asking about substrings, either.
You are correct, substring is also the wrong word.
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.