Infineon Technologies interview question

Two sum and three sum