Pergunta de entrevista da empresa Meta

A medium difficult string comparison question in the leetcode top 50 for Meta.