AJIO interview question

Max level sum in tree