This is exactly the same as Intersecting Chords


#1

Just another application of Catalan number. Copying the code from there works!