NewProject Coding is here — build features and fix bugs in real codebases with an AI assistantSee what's new

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

Test Cases
Input
Output
Expected