Brainlabs Interview Question

pseudo code about complexity, divide and conquer problem