ans
A>C>B>D
reason:for A aliphatic amines are stronger base than the aromatic amines(Kb = 10-4)
For C due to -I effect of oxygen e- w'll be pulled decreasing the basicity(Kb=2 x10-6)
For B pyridine has a pair of electron that are available for sharing with acids. (Kb =2.3 x 10-9)
For D in pyrrole e-s are not available for acids , as they are delocalized.
(10-14)