Buildings of different heights stand in a row. Each side sees a different number of them: taller buildings hide the shorter ones behind them.
How to count visible buildings
Visible: 2
Switch the viewing side — only the buildings visible from the chosen side are highlighted.