Genisys Group interview question

To write the algorithm to find the sum of two numbers from the array with target using hash map