Pregunta de entrevista de AmZetta

Write a program for Bit swap with given positions.