Google interview question

Implement a function like the tail utility in Unix/Linux