Highest Tenure

https://algo.monster/problems/highest_tenure