SAP interview question

Leetcode questions on array and bst