Answers to www.hackerrank.com