Myntra interview question

Tree traversal