Hacker rank Practice questions