Gartner interview question

Question related to java , threading, DSA