Write a function maskApiKey(key) that displays only the first 4 and last 4 characters, replacing the middle with ****.
maskApiKey(key)
****
Masked: live****9999 [✓] String mask verified (Time: 0.036s, Memory: 24.4 MB)