Argusoft interview question

must solve linked list problems from geeksforgeeks