Pregunta de entrevista de Locatee

Logical thinking, coding, time complexity