Microsoft interview question

they asked me an algorithmic question.