Write code that given the root of two BSTs of integers, finds the greatest common integer in them.
Given:
5 / \ 3 7
9 / \ 5 12 \ 7
Returns: 7