Reputation Interview Question

Mountain Array - LC Medium