WD Interview Question

Decimal to gray function with logic gates