Tracxn interview question

Data structures and algorithms JavaScript Node js