Publicis Sapient interview question

Threading in Java