URI OJ : 1426 - Add Bricks in The Wall

solution :