S&P Global Interview Question

Difficulty faced while doing the projects