Domanda di colloquio di Infosys

Print maximum consecutive character in a string.