Pergunta de entrevista da empresa Data Axle

DSA code, where we had to compress a function and optimize it.