IOTL, the first foreign-ruled dynasty of Egypt was the 27th, the Achaemenid Persian one. But what if it is done by King David (or his son, Solomon if it is more plausible) instead, a Jewish one? Also to be noted here is that he or his son unites Kindom of Egypt, and in the end if Solomon dies i expect United Kingdom of Israel and Judah and the 23th dynasty of Egypt to be divided into three, but probably could even more.