1. Given an array with positive number the task to find the largest subsequence from array that contain elements which are Fibonacci numbers.
Input Format
First line contains an integer N denoting the size of the array. Next line contains N space separated values of the array.
Output Format
Print space separated elements of longest fibonacci seq.
Constraints
1<=N<=100 1<=A[]<=1000
Notice
Try First, Check Solution later
1. You should first read the question and watch the question video.2. Think of a solution approach, then try and submit the question on editor tab.3. We strongly advise you to watch the solution video for prescribed approach.Example
Input
7 1 4 3 9 10 13 7
Output
1 3 13