hIOTron interview question

in aptitude there are question on database,networking,mathematics,c,c++,nodejs,java script etc. in coding round Fibonacci series code,factorial code,sum of array,find duplicate words in string ,insert : after every second element of string