Macquarie Group Interview Question

threading in java