Problems given in hacker rank