Ruby program to fetch a fibonacci number when given input 'n'