Prateek's submission of Social Network | CodeChef