Company: Nvidia
Difficulty: medium
A company wants to track the usage of its mobile app by recording users' login times and dates. The company implement a function that processes mobile app login records to generate daily user activity reports. The login information is stored in a 2D array of strings called logs. Each entry contains data in the format ["username", "login_time", "login_date"]. Your task is to create a function that processes these logs and outputs a 2D array of strings, sorted lexicographically. The output should display the number of times each user logs in per day in the format ["username", "login_date", "login_count"]. The function should: Filter out any invalid data from the input array Sort users in lexicographic order based on their user_id For each user, sort their information by login date in ascending order Note that dates and times are provided in YYYY-MM-DD and HH:MM:SS format, and usernames follow the format "userX" where X is an integer. Example Input: logs = [ ["user1", "09:00:00", "2021-01