https://practice.geeksforgeeks.org/problems/immediate-smaller-element1142/1
Problem - if next immediate number is smaller then modify array element to that el