Maistorage Interview Question

Basic question about logarithm and coding.