Hi @JeanneAdil, I'm sorry but I meant my original comment/question to Kryssie1067, not as a reply to you. Sorry for the confusion.
A single-itinerary flight booked all together, whether 1 stop or 3 stops along the way, will almost never require you to go through immigration/customs in any layover country until you reach the destination country. Instead, you will always be in the international terminal and never actually be "in" the country where the layover is taking place.
It's true that you might need to pick up/re-check bags or get additional boarding passes in those circumstances, bu those will always be at service desks in still within the international terminal.