Pregunta de entrevista de Tesco

code a function that returns the n_th element of a numerical sequence