Pitney Bowes Interview Question

Difference between partitionby and rank