Original: He served as the prime minister of Egypt between 1945 and 1946 and again from 1946 and 1948.
Simplified: He was the Prime Minister of Egypt from 1945 to 1946 and again from 1946 to 1948.