Linked List Taking Input

what exactly is the meaning of while(data!=-1) condition i did not understand?