Infosys Interview Question

Print maximum consecutive character in a string.