Urban Company interview question

difference between rank and dense_rank function.