Solve linked-list and top-K algorithm tasks | Meta Interview Question