A Muslim was already CJ of Indian Supreme court FYI. Chief Justice Fatima Beevi.
Muslims have been Major Generals and Lt. Generals. They will become chief soon if they fulfil the criteria, Remember Sikhs & Parsis have been Armed Forces Chiefs!
What Muslims can not become is priest in Hindu temple! (They are most welcome to, after converting of course)