Microsoft Interview Question

give algo for a btree