Intel Corporation interview question

To build priority encoder and than a decoder.