Check if each recipe is a contiguous subsequence | Snowflake Coding Question