Earlier quoted context omitted.
Have you tried this? :) https://codefights.com/bots/botasana
I like how they slip in "Oh, all you have to do is parse HTML with regex" on the last problem.
I was using a string builder to eat the input as I had parsed it... but I got an error on submitting my result - it gave "unexpected termination" even when I had replicated the "unexpected termination" error with a custom test case and caught the error - I still got an unexpected termination error when submitting - sigh - maybe it's related to using C# for the challenge... overall not so hard though...