Jane Street interview question

Code a new special container