Smart Company interview question

Java basic Java concurrency Algorithm