Bloomberg interview question

Some simple coding problem, don't remember the details