Indium Software Interview Question

nth fibbonacci series,factorial logic