Pergunta de entrevista da empresa Maistorage

Basic question about logarithm and coding.