HOPS Healthcare interview question

Asked about Core Java and Threading part