Optiver interview question

Logical test