Recently, we were working on a very interesting problem. The problem statement is as below. 1. We need to show 3 sections with a finite number of blocks in it. In the initial state, this will look something as below. 2. When a user hovers over any of the blocks, the block gets expanded and…