Given an integer array representing piles of stones, you must perform exactly k operations. In each operation, choose any pile and remove half of the stones (rounded down). Return the minimum possible total number of stones remaining after k operations.
Click Run to execute sample tests.