Google Interview Question

Calculate the memory saved with different codes.