Question d’entretien chez WePay

Basic Hackerank two sum type problem