Qualcomm Interview Question

Write a program to toggle an arbitrary bit of a number. Don't modify other bits