Bloomberg Interview Question

logic questions about programming