Pocket Gems Interview Question

parse ternary to binary tree