The Stack Overflow podcast is back! Listen to an interview with our new CEO.
1 of 2

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

{⍺⍺/1 1⍉⍵}

Try it online!