Funding Circle Interview Question

Write a data compression algorithm.