// Write a method to find out how much total time was spent in each space,
// over all users.
// action, space, user, timestamp
static String [][] requests = {
{"create", "xyz", "1", "1619916081"}, // Sat May 01 2021 17:41:21 GMT-0700
{"join", "xyz", "2", "1619916681"}, // Sat May 01 2021 17:51:21 GMT-0700
{"create", "abc", "3", "1619916881"}, //12:01
{"leave", "xyz", "2", "1619920281"},
{"join", "abc", "4", "1619920881"},
{"create", "ghi", "5", "1619923999"},
{"leave", "xyz", "1", "1619923881"},
{"leave", "abc", "3", "1619927481"}, //12:07 time spent = 6 minutes
{"leave", "abc", "4", "1619927481"},
{"leave", "ghi", "5", "1619958001"}
};
For Userid = 3, total time spent is 12:07 -12:01=6 mins