Capgemini Interview Question

find the max and min element in an array using pointers