Wipro Interview Question

Basic interview coding questions(Leap year or not, prime number)