Optiver Interview Question

online assessment that was difficult