# Latin Squares!

Computer Science Level 5

Given above is a $$5 \times 5$$ grid. In how many ways can you fill the grid with numbers from $$1$$ to $$5$$ inclusive such that each number appears exactly once in each row and column?

Details and Assumptions

• Every number from $$1$$ to $$5$$ inclusive must be used exactly five times in the entire grid.

• An explicit example of such grid -

×