Bloomberg Interview Question

Some simple coding problem, don't remember the details