Check whether the difference between the max and min element is less than or equal to k or not
if ( ( max_element - min_element ) <= k ) : NEW_LINE INDENT return ( max_element - min_element ) NEW_LINE DEDENT