Bloomberg interview question

Finance-related whiteboard coding.