
// Use only 'next()', 'previous()', 'isLightEnabled()', 'toggleLight()', 'break', 'continue', 'do', 'else', 'for', 'if', 'return' and 'while'
// No constants, defines, includes, lambdas, variables, templates, no other function calls except 4 functions above
// No more than 1 KB of code
// Solution should be resistant to source data changes, including 'STATION_SIZE', initial state of 'lights' vector and 'room' variable
То есть надо выйти из функции (return), когда ты уверен, что везде выключил свет.