Clover Health interview question

Write a program to parse some data and output the desired result