Bank of America interview question

threading concepts