Aptiv interview question

Binary Tree JS based basic SQL Basic