S&P Global Interview Question

Basic OOPS