given an array of size n find largest subsequence array such that its elements follow a pattern
f[i]=f[i-1]+f[i-2]
for eg:
7
6 2 3 4 5 8 13
o/p = 5
subsequence = {2,3,5,8,13}
this problem was asked in infytq certification exam
pls share ur approaches