Company: tiger analysis_23april
Difficulty: medium
Discrete Structures: Comparison of Discrete Values You are given 2 packs of numbered cards named Set A of size N and Set B of size K . Each card in both sets contains a single integer. You must pick each card from Set A and create a log as per the following set of rules: If the card from Set A is equal to K , print 1 . If the card from Set A matches numbered cards from Set B but is not equal to K , print 0 . If the card from Set A does not match any card from Set B , print # . Execute the game and print the sequence generated. Note The size of Set A is always greater than Set B (i.e., N > K ). K should be compulsorily a numbered card of Set B. These sets of cards are sets of all-natural numbers until 100. Function Description In the provided code snippet, implement the provided game(...) method to execute the game and print the sequence generated. You can write your code in the space below the phrase "WRITE YOUR LOGIC HERE". There will be multiple test cases running, so the Input an