Epic interview question

Algorithm to output a array with out current index