Pregunta de entrevista de ServiceNow

It was leetcode easy to medium, implement two sum