Jane Street interview question

How do you build a calculator?