GlobalLogic Interview Question

Reverse a linklist Prime no and leap year finding