Kellton interview question

Basic programming questions followed by simple DS program.