EPAM Systems interview question

Write the pseudo code for inserting a node in a Binary Search Tree (first explain logic, then write).