def CheckUnique(num):
  """
  Function to get unique digit numbers
  Args:
    num(int) : number
  Returns:
    bool : True or False
  """
  # Start traversing the numbers 
  repeated = [0,0,0,0,0,0,0,0,0,0] 

  # if a digit occcurs more than 1 time then break       
  while (num): 
      if repeated[num % 10] == 1: 
          break
      repeated[num % 10] = 1
      num = (int)(num / 10)

  # num will be 0 only when above loop doesn't break thus its unique 
  if num == 0:
      return True
  return False