Remitly interview question

Two sum stream of data