Build your first fully functional, Java-based AI agent using familiar Spring conventions and built-in tools from Spring AI.
- find successors and predecessors using BST (both list will be sorted); in the end, we can easily get top k from the two sorted list - with BST: **inorder traversal gives us sorted predecessors - ...