Domanda di colloquio di Amazon

The first coding question is about array. The second is about 2 pointers.