Idea in Motion interview question

Some questions in design and programming question