Minimum changes required to make a Catalan Sequence
Given an array arr[] of N integer elements, the task is to change the minimum number of elements of this array such that it contains first N terms of the Catalan Sequence. Thus, find the minimum changes required.First few Catalan numbers are 1, 1, 2, 5, 14, 42, 132, 429, 1430, 4862, .....Examples: Input: arr[] = {4, 1, 2, 33, 213, 5} Output: 3 We h