Pregunta de entrevista de Jio

Find two numbers in array with sum X.