worked out some more challenges from Hacker rank