Circular linked list

it is showing runtime error . can u plz check?

on submitting the code it is showing runtime error.