There are n candidates, where each candidate has a skill denoted by skillful. a total of (n/2) teams are to be formed, such that the total skill of each team is the same.