I am able to deduce that i have to find number of possible ways to find sum from three numbers which will be max( a ) - min( a ) , max( b ) - min( b ) , max( c ) - min( c )