Uber Interview Question

Question related to Divide and Conquer.