Completed 2010 s2 by creating a binary tree
Solved 2010 s2 using binary tree