Optiver Interview Question

Logical test