Slowest Key - Company-specific OAs / Amazon OA

This question asks for the key with largest duration releaseTimes[i] - releaseTimes[i - 1]. We can simple loop through each release time and calculate its difference to the previous time. If multiple characters have the same duration, we want to use the lexicographically largest.


This is a companion discussion topic for the original entry at https://algo.monster/problems/slowest_key/