IBM interview question

Puedes resolves este challenge de codigo? Two Sum