Pergunta de entrevista da empresa NVIDIA

Given a 16 bit input (d3 d2 d1 d0 as the 4 nibbles), write a function which gives an output d2 d3 d0 d1