Pergunta de entrevista da empresa AppNeta

In the linked list find the n-th element from the tail at minimum cost.