Pergunta de entrevista da empresa Continental

Design an optimal function in you preferred language for interchanging lsb and msb of two values.