Solutions to the challenges on hackerrank