Out of warranty replacement for iPhone 4 is $149 US.
Apple does not repair iPhones, but replaces them.
Check here to see your warranty status:
If you are still in warranty and problem is due to manufacturing defect,
Apple will not charge for the replacement.
Make an appointment before going to the Genius Bar to avoid delay: