Basically I was trying to solve this question:
Find the force of interaction between 2 charges Q1 and Q2 placed at a distance "L" apart when space between them is filled with medium of varing dielectric constant. Near Q1 the value of dielectric constant is K1 and near Q2 is K2.