[Q13.1]print the last k lines of a file using C++