1 of 2

APL (Dyalog Unicode), 10 bytes (Adám's SBCS)

{⍺⍺/1 1⍉⍵}

Try it online!