Pergunta de entrevista da empresa Espressif

Given integer n and k, set kth least significant bit in binary representation of n.