Vanta Interview Question

The coding question is Word Pattern II on leetcode.