Pregunta de entrevista de Sos Tariffe

Basic php code. Data structures and algorithms applied.