Pregunta de entrevista de IMC Trading

Derive this data compression technique (given hints on how to do this)