Programming Question-6 distinct