Energy stored in a stretched spring physics problem