S&P Global interview question

Javascript Data structure. React project SDE knowledge OOP