Google Interview Question

How to build a system like paste.com?