Added make_bricks solution

My code couldn't run on the coding bat site itself although, it solves
the problem as i tried in my end.