16. Add a Zero Border

Easy

Return a new array that surrounds the existing array Z with a one-element-wide border of 0's on every side (so each dimension grows by 2).

Input

[[1. 1. 1.]
 [1. 1. 1.]
 [1. 1. 1.]]

Output

[[0. 0. 0. 0. 0.]
 [0. 1. 1. 1. 0.]
 [0. 1. 1. 1. 0.]
 [0. 1. 1. 1. 0.]
 [0. 0. 0. 0. 0.]]

Sign in to write and run your own code.

Implement solve(...)