Tech Mahindra interview question

basic logical questions. Algorithms for fibonacci, prome num etc