Pregunta de entrevista de Five9

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