Remove K Characters to Get Smallest String

Company: HashedIn_19sep

Difficulty: medium