Domanda di colloquio di Amazon

Two sum problem but had different edge cases