Snowflake interview question

Medium interview questions regarding backtracking and combinations/permutations.