a simple and the most trivial solution of http://ayende.com/blog/163394/new-interview-question