1 2 3 4 5 6
def unique_Element(arr,n): s = set(arr) if (len(s) == 1): return ('YES') else: return ('NO')