Function invert

Source
const fn invert<const N: usize>(scan: [u16; N]) -> [u16; N]