Pergunta de entrevista da empresa Five9

givem array of objects, find object with the same value as input.