TATA ELXSI Interview Question

write a program to check whether a linked list is continuous