Update Problem S3: Friends.cpp