EbixCash interview question

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