Vanta interview question

The coding question is Word Pattern II on leetcode.