Samsung Research America interview question

Basic C questions