An example of an over square engine is a 3.940 bore (.030 over 318) and a 4 inch stroke. That’s over square because the stroke is longer than the bore is in diameter.
An example of an over square engine is a 4.04 bore (standard 340) and a 3.313 stroke. The bore is bigger in diameter than the stroke is in length.