Shopee interview question

Q: Remove the last nth node in a linked list Q: Longest common subarray (not subsequence)