Bloomberg Interview Question

Modified version of a common Medium LC question