Domanda di colloquio di Red Hat

2Sum code question (can be wrriten in any language)