Pergunta de entrevista da empresa Microsoft

Find the last element in a linked list and return it.