CitiusTech Interview Question

Max and 2nd max number in array. Prime number.