BlackBerry interview question

can you write a LinkedList function which adds a new element to list.