Added Custom solution for Problem 4 LinkedList