NVIDIA Interview Question

Write a version of the C function tail