Betterplace interview question

Advance JS, React . JS