comefrom: <gouthampradhan>array_NextGreaterElementI_1.java
code: public int[] nextGreaterElement(int[] nums1, int[] nums2) {
      int[] result = new int[nums1.length];
      for (int i = 0; i < nums1.length; i++) {
        int n = nums1[i];
        boolean found = false;
        int nF = 0;
        for (int j = 0; j < nums2.length; j++) {
          if (nums2[j] == n) {
            found = true;
          }
          if (found) {
            if (nums2[j] > n) {
              nF = nums2[j];
              break;
            }
          }
        }
        if (found) {
          result[i] = nF;
        } else {
          result[i] = -1;
        }
      }
      return result;
    }
masked: public int [ ] sample_funcname ( int [ ] var_0 , int [ ] var_1 ) {
    int [ ] var_3 = new int [ var_0 . length ] ;
    for ( int var_5 = 0 ;
    var_5 < var_0 . length ;
    var_5 ++ ) {
      int var_6 = var_0 [ var_5 ] ;
      boolean var_10 = false ;
      int var_8 = 0 ;
      for ( int var_9 = 0 ;
      var_9 < var_1 . length ;
      var_9 ++ ) {
        if ( var_1 [ var_9 ] == var_6 ) {
          var_10 = true ;
        }
        if ( var_10 ) {
          if ( var_1 [ var_9 ] > var_6 ) {
            var_8 = var_1 [ var_9 ] ;
            break ;
          }
        }
      }
      if ( var_10 ) {
        var_3 [ var_5 ] = var_8 ;
      }
      else {
        var_3 [ var_5 ] = - 1 ;
      }
    }
    return var_3 ;
  }
  