You are given with an array. For each element present in the array your task is to print the next smallest than that number. If it is not smallest print -1
Input Desc