pass the tests by writing the simplest split/map/to_i/inject+
added test for newlines