3Edge interview question

basic c and c++ programs like palindrome and fibonacci series based.