Paytm Money Interview Question

second maximum in array