Preheat oven to 180 degrees. Grease pan generously. Line with parchment paper and lightly grease paper.
Combine all the ingredients in the "for cookie layer" till well moist. Press it at the bottom of the pan.
Now we make the brownie layer. Whisk the cocoa and margarine on low flame till well combined. Allow to cool slightly.
Add in the flax egg, vanilla and sugar till the sugar melts.
Whisk the dry ingredients together till well combined. Add the wet ingredients and fold in till well combined and fully moist. The batter will be thick.
Spread the batter over the cookie batter. The cookie batter may stick to the brownie batter but manage to spread with two spoons.
Bake for 30 minutes. Allow to cool slightly.
For the icing, whisk the margarine and cocoa powder till well combined. Add in the icing sugar and vanilla extract and mix. Add a little warm water to get a proper icing. Spread on top of the baked brownie.
Allow to cool completely in the pan. Pull out the parchment paper and cut into 16 squares.