Given an array of integers `a` of size `n` where `n` is the number of elements. The array contains elements in the range `[1, n-1]`, and exactly one element is repeated. The task is to find both the ...