Pregunta de entrevista de Zeta

1 stack question and one on diffrence array