Red Hat Interview Question

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