10. Ones on the Border, Zeros Inside

Easy

Return an n×n float tensor with 1 on the border and 0 inside.

Input

5

Output

tensor([[1., 1., 1., 1., 1.],
        [1., 0., 0., 0., 1.],
        [1., 0., 0., 0., 1.],
        [1., 0., 0., 0., 1.],
        [1., 1., 1., 1., 1.]])
Implement solve(...)