Millennium Interview Question

Graph traversal, K-th smallest element