public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        List<String> list = new ArrayList<>();
        while (scanner.hasNextLine()) {
            try {
                String s = scanner.nextLine();
                if (s.equals("1"))
                    break;
                list.add(s);
            } catch (Exception e) {
                break;
            }
        }
        System.out.println(solve2(list));
    }
Why Did you create this class? what does it do?
src/adventofcode/RecursiveCircus.java