S&P Global interview question

Difficulty faced while doing the projects