<gouthampradhan>array_CardFilipGame_1.java
public int flipgame(int[] fronts, int[] backs) {
    List<Integer> numbers = new ArrayList<>();
    for (int i = 0; i < fronts.length; i++) {
      numbers.add(fronts[i]);
      numbers.add(backs[i]);
    }
    Collections.sort(numbers);
    for (int n : numbers) {
      boolean success = true;
      for (int i = 0; i < fronts.length; i++) {
        if (n == fronts[i] && n == backs[i]) {
          success = false;
          break;
        }
      }
      if (success) {
        return n;
      }
    }
    return 0;
  }
public int sample_funcname ( int [ ] var_0 , int [ ] var_1 ) {
  List < Integer > var_5 = new ArrayList < > ( ) ;
  for ( int var_7 = 0 ;
  var_7 < var_0 . length ;
  var_7 ++ ) {
    var_5 . add ( var_0 [ var_7 ] ) ;
    var_5 . add ( var_1 [ var_7 ] ) ;
  }
  Collections . sort ( var_5 ) ;
  for ( int var_12 : var_5 ) {
    boolean var_14 = true ;
    for ( int var_7 = 0 ;
    var_7 < var_0 . length ;
    var_7 ++ ) {
      if ( var_12 == var_0 [ var_7 ] && var_12 == var_1 [ var_7 ] ) {
        var_14 = false ;
        break ;
      }
    }
    if ( var_14 ) {
      return var_12 ;
    }
  }
  return 0 ;
}
