Pregunta de entrevista de Swiggy

Binary tree, array, greedy, design splitwise