Second Spectrum interview question

Hacckerank question -Disk Space analysis