SoCtronics interview question

binary to gray converter using encoder and decoder