You are given the root of a binary tree with n nodes, where each node holds node.val coins. There are exactly n coins in the whole tree.
In one move you may pick two adjacent nodes and move one coin from one to the other (parent to child or child to parent).
Return the minimum number of moves needed so that every node holds exactly one coin.