Snap Interview Question

Build a binary tree from array