Given two integers n and k, return the cost of flipping all set bits in n. One flip operation costs k.