Zoho interview question

basic aptitude and puzzles, c programs