Capgemini Engineering Interview Question

linked list various question like reversing and checking if its a circular linked list. interviewer had written a program which consisted of public private and protected variable and asked to specify the scope.