A linked list with just 3 items is no simpler than a linked list with any number of items.

I'm also not sure if it is possible to do it with if, for and while (the recursive function still needs if).

If you don't understand the examples because of if, for and while, may-be you should learn about these first.