Infomatrix Inc. interview question

basic pointers and aptitude question