OYO Interview Question

first, the question was the binary tree and the second question was from the array