Some Hackerank problem solutions