create linked list.cpp

if 1234 is given program will print 1->2->3->4->