indie Semiconductor Interview Question

Design an efficient circuit to convert thermometer code to binary. How would you pipeline it?