JustPark Interview Question

Write a simple function / program to solve a word problem.