Pergunta de entrevista da empresa Zeta

1 stack question and one on diffrence array