This is a very easy question, but I am a LaTeX newbie. Any idea how to code diagrams of this kind? 

![enter image description here](https://i.stack.imgur.com/QDqQE.png)

Image taken from the [Catalan number Wikipedia page](http://en.wikipedia.org/wiki/Catalan_number).