Sopra Steria Interview Question

it was from binary tree.