public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        List<String> list = new ArrayList<>();
        while (scanner.hasNextLine()) {
            String s = scanner.nextLine();
            if (s.equals("1")) {
                break;
            }
            list.add(s);
        }
        System.out.println(solve2(list));

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