Pergunta de entrevista da empresa Infosys

Print maximum consecutive character in a string.