KPMG interview question

prime number, fibonacci series c programming