Microsoft interview question

Interview 3 turns and each turn an algorithm program challenge.