Pergunta de entrevista da empresa Nasdaq

it was a technical scenario based question