Urban Company Interview Question

difference between rank and dense_rank function.