Optiver Interview Question

they asked a question that had circular array and