Kaar Technologies Interview Question

Max and min element in an array