Walmart Global Tech interview question

I was asked three coding questions testing arrays, two pointer approach and paliandrone.