Optiver Interview Question

First part was an 8 minute fast mental math quiz.