Function to check if it is possible to select three buildings that satisfy the given condition
def recreationalSpot ( arr , N ) : NEW_LINE INDENT if ( N < 3 ) : NEW_LINE INDENT return " No " NEW_LINE DEDENT DEDENT