Taranpreet Singh's submission of Social Network | CodeChef