Zoho Interview Question

basic aptitude and puzzles, c programs