added solution to the Friends problem on CodeChef