Analyze EC2 Instance Log File

Company: Flipkart__..

Difficulty: medium

Problem Statement

Analyze EC2 Instance Log File You are responsible for the smooth running of an EC2 instance, and lately its performance has been suffering. To find out which application is causing the problem, you have downloaded the instance's log file. Every line of the log describes one observation of one process, as eight values separated by a single space: [Process_Name] [Status] [CPU_Utilization%] [Memory_Utilization%] [Disk_Utilization%] [Network_Utilization%] [Date] [Time] Find every Process_Name that appears more than once in the log, and print those names in ascending order , each name once. Complete the function analyzeLogs(logs) . It receives the log lines in order, each line already split into its eight fields (so logs[i][0] is the process name of line i ), and returns the repeated process names in ascending order. Read the input from STDIN and print the output to STDOUT. Do not print anything else (no prompts or labels), as everything you print is compared with the expected output. Input