Behaviour Interactive Interview Question

Search through an array using two pointers