Greenhouse Software interview question

Write out JS functions to transform this data into the desired outcomes.