Solve 2 codility problems for Twitter