Algoshots Interview Question

Kadane Algorithm Next Immediate Greater Element