AC solution binary tree upside down 40ms