Optiver Interview Question

20 minute mental math section.