Google Interview Question

Compare patterns in 2 strings and return true or false based on the pattern