Deloitte interview question

Multi threads and collection api