EPAM Systems interview question

Dp problem on catalan number Java questions