Erm, the problem at hand is incredibly easy. Your friend needs to do what looks like his own homework...

www.google.com is your friend.