Inclusion Criteria A. For Participants with Hepatic Impairment  Has a BMI greater than or equal to (>=) 18.0 and less than or equal to (<=) 40.0 kilogram per square meter (kg/m^2), at screening. At least 50% of the participants will be required to be of BMI >=18.0 and <=35.0 kg/m^2, at screening.  Supine blood pressure (BP) is >=80/40 millimeter of mercury (mmHg) (asymptomatic) and <=150/95 mmHg at screening; Supine pulse rate (PR) is >=40 beats per minute (bpm) and <=99 bpm, at screening; QT interval corrected for heart rate using Fridericia's formula (QTcF) is <=500 millisecond (msec) and ECG findings considered normal or not clinically significant by the Investigator or designee, at screening.  Must have had chronic HI for at least 3 months before screening, and the HI must be stable, that is, no significant changes in hepatic function in the 30 days preceding screening (or since the last visit if within 6 months before screening) and treatment with stable doses of medication. Has a score on the Child-Pugh Class at screening as follows:  (Arm 1) Moderate HI, Child-Pugh Class B: >=7 and <=9 (Arm 2) Severe HI, Child-Pugh Class C: >=10 and <=15 Should not have renal dysfunction as demonstrated by a relatively adequate renal function (creatinine clearance >=50 milliliter per minute [mL/min]/1.73 meter square [m^2]), at screening.  B. For Healthy Participants  Has a BMI >=18.0 and <=40.0 kg/m^2, at screening. At least 50% of the participants will be required to be of BMI >=18.0 and <=35.0 kg/m^2, at screening. Healthy participants will be matched to hepatic impaired participants in this study by age (mean ±10 years), sex (±2 per sex), and BMI, mean ±10%.  Supine BP is >=90/40 mmHg and <=150/95 mmHg, at screening; Supine PR is >=40 bpm and <=99 bpm, at screening; QTcF is <=450 msec (males) or <=470 msec (females) and ECG findings considered normal or not clinically significant by the Investigator or designee, at screening; Liver function tests including alanine aminotransferase (ALT), aspartate aminotransferase (AST), alkaline phosphatase (ALP) and total bilirubin <= the upper limit of normal (ULN) at screening and check-in. Should not have renal dysfunction as demonstrated by a relatively adequate renal function (creatinine clearance >=60 mL/min/1.73m^2), at screening.  C. For Participants with Hepatic Impairment and Healthy Participants  1. Continuous non-smoker or moderate smoker (<=10 cigarettes/day or the equivalent) before screening. Participant must agree to consume no more than 5 cigarettes or equivalent/day from the 7 days prior check-in and until discharge from the Clinical Research Unit (CRU).  Exclusion Criteria A. For Participants with Hepatic Impairment  Has history or presence of clinically significant medical or psychiatric condition or disease (aside from HI) or presence of psychotic disorders such as psychosis, delusions, or schizophrenia in the opinion of the Investigator or designee. Has a history of liver or other solid organ transplant. Positive result at screening for human immunodeficiency virus (HIV). Hepatitis B surface antigen (HBsAg) positive participants are allowed to be enrolled if Hepatitis B virus (HBV) deoxyribonucleic acid (DNA) is below 1000 copies per milliliter (/mL) in the plasma. Participants with moderate HI who are positive for Hepatitis C virus antibodies (HCVAb) can be enrolled but must not have detectable Hepatitis C virus (HCV) ribonucleic acid (RNA) in the plasma. Participants with severe HI who are positive for HCVAb can be enrolled regardless of viral load.  B. For Healthy Participants  Has history or presence of clinically significant medical or psychiatric condition or disease or presence of psychotic disorders such as psychosis, delusions, or schizophrenia in the opinion of the Investigator or designee. Positive results at screening for HIV, HBsAg, or HCV.  C. For Participants with Hepatic Impairment and Healthy Participants  Has been on a diet incompatible with the on-study diet, in the opinion of the Investigator or designee, within the 30 days prior to dosing. Any positive responses on the Columbia-Suicide Severity Rating Scale (C-SSRS) or has a risk of suicide according to the Investigator's judgment based on the assessment of the C-SSRS at screening or check-in or has made a suicide attempt in the previous 12 months prior to dosing.