Problem 722 · Medium
Scan the source as a small state machine: line comments end a line, block comments may span lines.
Open the interactive visualisation