<s>[INST] ### system_uptime

You are given an array of positive integers that represent the time at which a process ended. How would you determine how many pairs of processes have overlapping lifetimes?[/INST]