Compute video-call SQL metrics with edge cases | Meta Interview Question