public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        StringBuilder builder = new StringBuilder();

        while (scanner.hasNextLine()) {
            String s = scanner.nextLine();
            if (s.equals("1"))
                break;
            builder.append(s).append("\n");
        }

        //System.out.println(s0lve(builder.toString()));
        Duet_18 duet = new Duet_18();
        System.out.println(duet.s0lve2(builder.toString()));

    }
Why Did you create this class? what does it do?
src/adventofcode/Duet_18.java