"GTA6" Dark Light Mystery Guide: Solutions to Lighthouse Mini-Games · Puzzle 4 – Etiquette in the Restroom

Number the seven doors from left to right. First, eliminate the construction compartments. Then, see which positions the other characters occupy. Prioritize choosing the compartment that is farthest away from them. When there are multiple people, try to keep a distance from everyone.
The seven choices in the original example are 7, 1, 4, 7, 6, 2, and 1. If the construction site or the character's position changes, re-select the door according to the distance rules.