Samsung Research America Interview Question

Tree