Two inefficient, but potentially correct, solutions.