Mobileye Interview Question

They gave me 2 leetcode problems the first one was with linked list