AppsFlyer Interview Question

two sum & three sum code problems.