Data Patterns interview question

Pointers , and other basics