Optiver interview question

Standard easy-medium difficulty Hackerranks throughout