Create flatten linked list.java