Stylus Systems interview question

First round was with an Simple aptitude and second one with some programming questions.