Microsoft interview question

Asked to write code for a low-level design question