Print Triangle (Nokia) and Remove Duplicates