An electron withdrawing group like NO2,Br and Ph increases the acidity of carboxylic acid. It actually stabilises the negative charge present on the carboxylate ion by inductive/resonance effect. The order of electron withdrawing substituent present in the given carboxylic acid is CH3<Ph−<Br−<NO2−. Thus, the order of acidity is A<B<C<D.