My hacker rank problem solutions