Microsoft interview question

Two Sum, a pointers question and a systems design question