Bloomberg Interview Question

Pretty hard problmes