Accenture interview question

How it achieve threading