Jane Street interview question

question had three parts, didn't run code