Nasdaq interview question

There was a technical assignment for the final round.