Tech Mahindra Interview Question

Write an algorithm for parsing a b-tree.