Interface Conditions Implementation

Hello Everyone
Can anyone suggest me to implement the interface boundary conditions of a domain made with two or more subdomains?

Any sample code may help me to solve my problem.

Thanks in advance!!!