ACSL Competition Problem 1