Jane Street Interview Question

come up with optimal strategy