Pergunta de entrevista da empresa BlackBerry

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