you give array consist n integersYour task determine subsequence length 3 palindromerecall array b call subsequence array b obtain remove possibly zero element necessarily consecutive change order remain element for example 2 1 2 1 3 2 3 subsequence 1 2 1 3 1 1 2 4 notalso recall palindrome array read backward forward in word array length n palindrome a_i a_n 1 1 n for example array 1234 1 2 1 1 3 2 2 3 1 10 100 10 palindrome array 1 2 1 2 3 1 notyou answer t independent test case