C # implementation to find the prefix of the s such that occurrence of each character is atmost the count of minimum frequency in the s
using System ; using System . Collections ; using System . Collections . Generic ; using System . Linq ; class GFG {