Nasdaq Interview Question

There was a technical assignment for the final round.