Cerium Systems Interview Question

convert grey to binary and binary to grey