Maistorage interview question

Basic question about logarithm and coding.