Solve Black White Tree

Find a subtree with the maximum strangeness. Solving code challenges on HackerRank is one of the best ways to prepare for programming interviews.