PubMatic Interview Question

Finding last 5 lines of continuous log generated by server