Added read/write methods in Solution.java
Test file for Solution