HP Inc. interview question

What parameters affect doping in thin films?