Not able to print circular linked list

I am unable to print a circular linked list. can plzz someone correct my code.
code link : https://ide.codingblocks.com/s/99313

Check your Push function again . I have corrected the code and used the func addLast to add elements into linklist :- https://ide.codingblocks.com/s/99581

Your code is giving run time error on executing.

First of all make your list circular . Code is giving runtime error because your linklist isn’t circular . I have only corrected your display method to work for circular linklist . Your task is to first make list circular.