Epic Interview Question

Algorithm to output a array with out current index