Pregunta de entrevista de CodeSignal

Asked to complete a series of coding tasks with increasing difficulty.