NVIDIA interview question

Implementing an efficient priority encoder