Amazon Coding Interview Problem: Minimum Number After K Removals