Samsung Electronics interview question

Pointers in c