We are given an array of numbers.Our goal is to find the length of the longest increasing subsequence.The recurring theme to solve this is using dynamic programming.The time complexity of the solution is O(n²).