ZipGo interview question

Puzzles, Basic DS Questions