Remitly Interview Question

use of big o notation