Infosys interview question

Fibonacci series Prime factorial Class and interface