AppsFlyer interview question

two sum & three sum code problems.