Solutions for Quora challenges , see for details (http://www.quora.com/challenges)