Google Interview Question

Q. Linked list problem. Q. Array problem