Simon AI Interview Question

Given a string, return the maximum occurring character.