Save 25%Black Friday: 25% off all plans — use code BLACKFRIDAY2026 at checkout. Ends Friday, Dec 4.Claim the deal

Design and implement a function that replicates the behavior of the Linux tail -n command.

Test Cases
Input
Output
Expected