Solutions to Quora's programming challenges