Nasdaq Interview Question

it was a technical scenario based question