Optiver Interview Question

Mental arithmetic and pattern recognition.