Given two integers n and k, return the cost of flipping all set bits in n. One flip operation costs k.
Your notes are automatically saved in your browser's local storage and will persist across sessions on this device.