KLA interview question

Algorithms based on heap & graph traversal