Pergunta de entrevista da empresa Bloomberg

the first question is to write a factorial function, both iteratively and recursively. the second was to implement a linked list from scratch and then use that linked list to implement a stack. Then i was asked to reverse my linked list.