Solution using the central binomial coefficient