Programming exercise for applicants.