Given the root of a binary search tree (BST) with duplicates, return all the mode(s) (the most frequently occurring values) in it. If the tree has more than one mode, return them in any order.
In this BST, the left subtree of a node holds only values less than or equal to the node, and the right subtree holds only values greater than or equal to it.