Check for erroneous input values
if ( qs < 0 or qe > n - 1 or qs > qe ) : NEW_LINE INDENT print ( " Invalid ▁ Input " , end = " " ) ; NEW_LINE return - 1 ; NEW_LINE DEDENT return getSumUtil ( 0 , n - 1 , qs , qe , 0 ) ; NEW_LINE