DXC Technology interview question

design patterns and multithreading