Inclusion Criteria:  Male or female aged greater than or equal to 18 years at the time of signing informed consent. BMI greater than or equal to 30.0 kg/m^2  Prediabetes defined as at least one of the following:  HbA1c between 6.0 and 6.4 percent (42 and 47 mmol/mol) (both inclusive) as measured by central laboratory at screening. FPG between 5.5 and 6.9 mmol/L (99 and 125 mg/dL) (both inclusive) as measured by central laboratory at screening.  Exclusion Criteria:  History of type 1 or type 2 diabetes. Treatment with glucose-lowering agent(s) within 90 days before screening. HbA1c greater than or equal to 6.5 percent (greater than or equal to 48 mmol/mol) as measured by central laboratory at screening. FPG greater than or equal to 7.0mmol/L (126 mg/dL) as measured by central laboratory at screening.  A self-reported change in body weight greater than 5 kg (11 lbs) within 90 days before screening irrespective of medical records.  Treatment with any medication for the indication of obesity within the past 90 days before screening.