S&P Global Interview Question

Simple programming questions