Code for hackerrank chanllenges and practice exercises