Madhav Jha's submission of Total Components | CodeChef