Tech Mahindra Interview Question

basic logical questions. Algorithms for fibonacci, prome num etc