SoCtronics Interview Question

binary to gray converter using encoder and decoder