Broadcom interview question

About karnaugh map. Why we use grey code?