One line solution for Game of connect

Catlan numbers LOL just one line. I'll try to understand it