Bloomberg Interview Question

writing coding question