You are given an array a(1 <= ai <= 1e9) of length n(1 <= n <= 25). You need to choose two non-empty disjoint subsets with the same sum. Print the maximum possible sum among such pairs of subsets.
My solution gets TLE when n is 25 -> https://pastebin.com/B5nRW1pZ