Choose the grammatically correct sentence.
“Walking into the office” must describe the subject that comes right after it.
Only a person can walk in, so the subject must be “I”.
The other options make the lights do the walking (a dangling modifier).
Answer: Walking into the office, I noticed that the lights were off.