Fun little problems from HackerRank.