Jane Street interview question

calculations