Fill the diagonals of an n by n matrix with ones.
Given a positive integer n, return an n x n matrix containing zeros everywhere except the main diagonal and the anti-diagonal, which must contain ones. When both diagonals intersect, the shared cell remains one.
Input: integer n. Output: a list of n lists, each containing n integers.
def fill_diagonals(n):