EY Interview Question

For technical interview was asked to write program on Fibonacci sequence with some modifications