Bloomberg Interview Question

Cannot share since I signed a NDA, but the problems looked like leetcode easy and medium problems