Company: Walmart sparkplug
Difficulty: medium
Git Merge You are given two lists of commits from different branches of a version control system. Each commit in the lists consists of a commit ID, a timestamp, and a status indicating whether the commit was successful (status 1) or unsuccessful (status 0). Your task is to merge the commits from both lists into a single list, ensuring that: Only successful commits are included in the merged list. Commits should be sorted according to their timestamp. If two commits have the same timestamp, commits from the first list should appear first. Your task is to merge the commits according to the rules above, and print the commit IDs of the merged commits in sorted order based on their timestamps. Input Format The first line of the input contains an integer N1 denoting the number of commits in the first list. The next N1 lines each contain a string commitID, an integer timestamp, and an integer status, separated by spaces. The next line of the input contains an integer N2 denoting the number of