Case 1 : Subtract current element from value so far if result is greater than or equal to zero .
if ( num - arr [ ind ] >= 0 ) { findMaxValUtil ( arr , n , num - arr [ ind ] , maxLimit , ind + 1 , ref ans ) ; }