MIP Holdings interview question

The question they asked is mostly about programming