Amazon Lab126 interview question

Represent the tail command programmatically Print the last 10 lines of server.log