Funding Circle interview question

Write a data compression algorithm.