Google interview question

binary trees and bit manipulation