Infosys interview question

Print maximum consecutive character in a string.