N26 interview question

Leet code Two Sum Question