Practice with 2 simple problems from hackerrank.