Pregunta de entrevista de Dematic

Technical interview consisted of two array problems.