Snowflake interview question

Counting pairs which gave an array and integer