15. 1 on Border, 0 Inside

Easy

Return an n×n array filled with 1 on the border and 0 inside.

Input

5

Output

[[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.]]

Sign in to write and run your own code.

Implement solve(...)