Microsoft interview question

Multi thread algorithms