Solutions to problems in Hackerrank