Pergunta de entrevista da empresa Indeed

2 sum problem: gave a array, and number k, find two number x, y in array that x + y == k.