AbbVie interview question

Example for Rank and Dense Rank