[Br:1][C:2]1[CH:3]=[CH:4][C:5]2[NH:6][C:7]3[C:12]([C:13]=2[CH:14]=1)=[CH:11][C:10]([Br:15])=[CH:9][CH:8]=3.[OH-].[K+].Br[CH2:19][C:20]([O:22][CH2:23][CH3:24])=[O:21]>CN(C)C=O.C(OCC)(=O)C>[Br:15][C:10]1[CH:9]=[CH:8][C:7]2[N:6]([CH2:19][C:20]([O:22][CH2:23][CH3:24])=[O:21])[C:5]3[C:13]([C:12]=2[CH:11]=1)=[CH:14][C:2]([Br:1])=[CH:3][CH:4]=3To a solution of 3,6-dibromocarbazole (325.0 mg, 1.0 mmol, 1 equiv) in anhydrous N,N-dimethylformamide (5 mL) was added crushed KOH (67.3 mg, 1.2 mmol, 1.2 equiv). The mixture was stirred for 30 minutes. Ethyl bromoacetate (277.2 μL, 2.5 mmol, 2.5 equiv) was added into the mixture and it was stirred at room temperature overnight. The reaction crude was diluted with ethyl acetate (30 mL) and washed with 1M HCl and water. The organic layer was dried with MgSO4 and the concentrated to afford 396.3 mg white solid as product (96.4%).