Optiver Interview Question

Typical algebra