Pregunta de entrevista de Windsurf

Leetcode style algorithm question. It was hard.