Solutions to hackerrank problems in different languages