Pocket Gems Interview Question

Implement a>b?a:b in tree.