AbbVie Interview Question

Example for Rank and Dense Rank