I haven’t used Max in a while, but it should be much the same as in Maya.
This video explains how to select areas to assign a material to.
3Ds Max How To Apply Material To Face
Don’t worry about what the material is - just make sure there is a distinct material for each material you will have in UE4.
Once you import it you can change the materials as you like.