public static void Main()
var line = "I like <CHOICE [cars and bikes] [apple and oranges]>";
var result = new StringBuilder();
if (!inChoice && c == '<') inChoice = true;
else if (inChoice && c == '>') inChoice = skip = false;
else if (!skip && !inOption && c == '[') inOption = true;
else if (inOption && c == ']') skip = true;
else if (skip || (inChoice && !inOption)) continue;
Console.WriteLine(result);