Virtusa interview question

Array, Hashset, ways to thread in Java