Pregunta de entrevista de Juniper Networks

Given an array, remove the occurrence of a particular number