<gouthampradhan>array_ProductOfArrayExceptSelf_1.java
public int[] productExceptSelf(int[] nums) {
    int[] result = new int[nums.length];
    for (int i = 0, temp = 1, l = nums.length; i < l; i++) {
      result[i] = temp;
      temp *= nums[i];
    }
    for (int i = nums.length - 1, temp = 1; i >= 0; i--) {
      result[i] = result[i] * temp;
      temp *= nums[i];
    }
    return result;
  }
public int [ ] sample_funcname ( int [ ] var_0 ) {
  int [ ] var_2 = new int [ var_0 . length ] ;
  for ( int var_4 = 0 , var_6 = 1 , var_7 = var_0 . length ;
  var_4 < var_7 ;
  var_4 ++ ) {
    var_2 [ var_4 ] = var_6 ;
    var_6 *= var_0 [ var_4 ] ;
  }
  for ( int var_4 = var_0 . length - 1 , var_6 = 1 ;
  var_4 >= 0 ;
  var_4 -- ) {
    var_2 [ var_4 ] = var_2 [ var_4 ] * var_6 ;
    var_6 *= var_0 [ var_4 ] ;
  }
  return var_2 ;
}
