Driver Code
int main ( ) { int arr [ ] = { 1 , 2 , 3 , 3 , 3 , 5 } ; int n = sizeof ( arr ) / sizeof ( arr [ 0 ] ) ; int maxQuadrupleWays = findWays ( arr , n ) ; cout << maxQuadrupleWays ; return 0 ; }