Domanda di colloquio di Microsoft

Asked to write code for a low-level design question