DS's submission of Total Components | CodeChef