TikTok Interview Question

Directed graph traversal & top K elements max heap