first prototype for hospitalrank function

first prototype for hospitalrank function
prototype and final for rankhospital

The final version for function hospitalrank