A and B are more basic than C and D due to +I-effect of methyl group A which is more basic than B. This is because of high/more steric hindrance in B due to three methyl groups. Out of C and D,C is more basic than D because of more steric hindrance in B. So, order of basicity is