Pregunta de entrevista de Decagon

They asked a variation on the skyline problem.