Write, and test a Java program called “Solution” to solve the p...