Pregunta de entrevista de Capco

Sort an array. Remove elements from the array. Avoid null pointers.