Update 3594.cpp

changed spacing to make cleaner, simplified code