0291: Word Pattern II

Problem Statement