I would like to get output from the input shown as image.
Most of branches are single item, but randomly some branches would have more than one data.
How do I get one data output for each branch?
I would like to get the max value if there are multiple data.