Well that plus the common sense gene and the ability to study history gene as well.
History teaches us that the first king to unite all the tribes of Israel was David, circa 1025BC. The Exodus is put somewhere in the neighborhood of 360-500 years earlier.
The united Israel didn’t last much beyond a hundred years and divided again into two kingdoms.
Israel, the northern Kingdom was destroyed by the Assyrians, Juda/Judea remained another couple of hundred years before the Babylonians conquered it.
Most of the Jews were then driven out but allowed back in under the Persian King Cyrus who encouraged them to rebuild the Temple in Jerusalem and reoccupy Judea fifty years later.