Problem 349 -- Find patterns