05/03 GfG POTD Solution Input: n = 2 a[] = {1, 10} Output: 1 Explanation: a[0] < a[1] so (j-i) is 1-0 = 1. geeksforgeeks By LogicLogs 5 March 2024