S&P Global interview question

Questions were mostly about OOP.