Boston Consulting Group Interview Question

3 Leetcode style questions, to be done in 1 hour maximum