Engine light on 97 Nissan altima says cylinder 4 misfiring what is the solution?

You need to isolate the cause of the misfire. Could be plug, wire, fuel, injector, internal engine, etc...