Pergunta de entrevista da empresa Juniper Networks

Given an array, remove the occurrence of a particular number