Total Subsequences is ( 2 ^ n - 1 ) For NumberOfEvenSubsequences subtract NumberOfOddSubsequences from total
let NumberOfEvenSubsequences = ( 1 << n ) - 1 - NumberOfOddSubsequences ; return [ NumberOfEvenSubsequences , NumberOfOddSubsequences ] ; }