Pergunta de entrevista da empresa Uncountable

Given a string and integer n, print out all characters that appear at least n times.