What is the time complexity to print the log N element in the linked list?

Program for n’th node from the end of a Linked List

Given a Linked List and a number n, write a function that returns the value at the n’th node from the end of the Linked List.
For example, if the input is below list and n = 3, then output is “B”

What is the time complexity to print the log N element in the linked list?