BMO Financial Group interview question

two sum, fetch data from api