Simple C # program to find smallest greater element in whole array for every element .
using System ; class GFG { static void smallestGreater ( int [ ] arr , int n ) { for ( int i = 0 ; i < n ; i ++ ) {