when it comes to these things, you need to pay attention to the language. The U.S. government doesn't give a rat's behind where you work. You can be an astronaut, working on a space station orbiting Mars, you can be an airline pilot, working the Marakesh--Kuala Lumpur route, you can be a sailor, working on a 300ft yacht in New Guinea . . . what they care about is where you RESIDE.
When Neil Armstrong was walking on the Moon back in 1986, he was working there, but he didn't reside there. So if you work outside the U.S. it's cool with Uncle Sam, as long as you are residing in the U.S.
That means prima facie it doesn't matter where you worked for naturalization purposes. Yet there are two requirement in regard to uninterrupted residency and presence in the United States.
To really answer your question properly, you need to list how many days you were absent from the U.S. in any of those 4 calendar years, and how often you were gone over 6 months, as at the 6-month mark your residency clock stops, but it starts ticking again where it stopped when you returned.
So list those years separately and we'll have a look.
The son of a German mother and a Swedish father, I have lived in 6 European countries before immigrating to Southern California two decades ago. I work as a corporate attorney in Santa Barbara and answering questions here is my way of giving back.