Pocket Gems interview question

To design a acheivement system.