Intel Corporation Interview Question

To build priority encoder and than a decoder.