Question d’entretien chez Infosys

Print maximum consecutive character in a string.