Optiver interview question

logic circuits, boolean algebra, basics