Pergunta de entrevista da empresa Amazon

Find the greater sum tree Two sum different approaches