Company: Visa_3Dec
Difficulty: medium
Block Motif Design Block Motif Design Description You have a sheet of n x m grid paper and you'd like to draw a cool design on it. You've decided on a block motif similar to Tetris pieces. Specifically, your picture will include the following five types of figures: Figure A: 1x1 square [[1]] Figure B: 1x3 rectangle [[1, 1, 1]] Figure C: 2x2 square [[1, 1], [1, 1]] Figure D: A T-shape rotated 90 degrees counter-clockwise [[1, 0], [1, 1], [1, 0]] Figure E: A T-shape pointing up [[0, 1, 0], [1, 1, 1]] The array figures contains a list of letters representing the types of figures you'd like to include in your design. Your task is to create a matrix of integers representing the grid paper, and draw the figures on it according to the following rules: Start with a matrix of all 0 s, and use the 1-based index of each figure to represent it on the grid. For example, if figures[0] = 'E' , then the shape added to the grid will be represented by the number 1 . If figures[1] = 'A' , it will be repr