Amazon Interview Question

Implement BST and put the given integer array into BST. Then find the distance between two given nodes.