Riskified interview question

2 sum