Pregunta de entrevista de Nasdaq

it was a technical scenario based question