I have this function which is supposed to give the value of a linked list node by its index. I can print the value the line before but when I return the value it somehow tur