public static void main(String args[]){
        SwapTwoBits stb = new SwapTwoBits();
        System.out.println(stb.betterSwap(172, 2, 4));
    }
http://www.careercup.com/question?id=17542662
src/com/interview/bits/SwapTwoBits.java