was going back and forthDescribes repeatedly moving between two places. The を marks the area or route where the movement took place, and していた indicates an ongoing action in the past.
JA: 彼女は駅の前を行ったり来たりしていた。
EN: She was going back and forth in front of the station.