Frage im Vorstellungsgespräch bei EbixCash

Find the Target in an optimized manner (Two Sum - leet code's 1st problem)