Full Binary Tree
https://code.google.com/codejam/contest/2984486/dashboard#s=p1