comefrom: <gouthampradhan>array_RevealCardsInIncreasingOrder_1.java
code: public int[] deckRevealedIncreasing(int[] deck) {
      Arrays.sort(deck);
      ArrayDeque<Integer> queue = new ArrayDeque<>();
      for (int i = deck.length - 1; i >= 0; i--) {
        queue.offer(deck[i]);
        if (i == 0) break;
        int temp = queue.pollFirst();
        queue.offer(temp);
      }
      int[] answer = new int[deck.length];
      int i = 0;
      while (!queue.isEmpty()) {
        answer[i++] = queue.pollLast();
      }
      return answer;
    }
masked: public int [ ] sample_funcname ( int [ ] var_0 ) {
    Arrays . sort ( var_0 ) ;
    ArrayDeque < Integer > var_1 = new ArrayDeque < > ( ) ;
    for ( int var_2 = var_0 . length - 1 ;
    var_2 >= 0 ;
    var_2 -- ) {
      var_1 . offer ( var_0 [ var_2 ] ) ;
      if ( var_2 == 0 ) break ;
      int var_3 = var_1 . pollFirst ( ) ;
      var_1 . offer ( var_3 ) ;
    }
    int [ ] var_4 = new int [ var_0 . length ] ;
    int var_2 = 0 ;
    while ( ! var_1 . isEmpty ( ) ) {
      var_4 [ var_2 ++ ] = var_1 . pollLast ( ) ;
    }
    return var_4 ;
  }
  