Gusto interview question

Given two problem sets, please write python scripts to solve them.