Microsoft interview question

Technical coding interviews, not too difficult, strong focus on writing functions