First, we need to set the initial string noses:A,B,C as the broth using the pour command.
Next, we'll split the string into tokens using : as the delimiter with slice command to separate noses from A,B,C.
Now we have two ingredients: [noses, A,B,C]. We only care about the second ingredient (index 1), so we'll stir with an empty delimiter to combine them back, but this isn't directly helpful. Instead, we should work with the second ingredient directly.
We'll pour the second ingredient A,B,C to make it our new broth.
Then we'll slice this new string using , as the delimiter to separate the individual options into ingredients: [A, B, C].
We'll reverse the order of these ingredients using the toss command, giving us [C, B, A].
Finally, we'll stir these ingredients back into a single string using - as the delimiter to get C-B-A.
The serve command will output our final result.
The answer is:
Pour noses:A,B,C
Slice :
Pour ingredients.1
Slice ,
Toss
Stir -
Serve.