Microsoft Interview Question

Question that tests your coding knowledge instead of full data structure.