BlackRock interview question

Multithread in Java