Pitney Bowes interview question

Difference between partitionby and rank