Some hacker rank solutions