add a catalan number based solution