did a couple problems from hackerrank