Compute time-spent percentage by app category | Meta Interview Question