S&P Global interview question

Coding questions on Java thread concepts