Hacker rank codes