LTM Limited interview question

Explain rank() and dense_rank() in sql