During one of the calibration rounds, there are exactly $6$ contestants. A tie is when two participants have solved the same number of problems. In how many ways the contest can end if there is exactly one tie between two participants?