Only one method needs to be written, please answer!!import java.util.*;public class HW4 { // Returns true if it is possible to reach the goal configuration from the initial configuration. static boolean isSolvable(Configuration initialConfiguration) { // Fill in. return false; } public static void main(String[] args) { Configuration puzzle1 = new Configuration(Arrays.asList(null, 1, 3, 4, 2, 5, 7, 8, 6)); System.out.println(isSolvable(puzzle1)); // true
OR
OR