Q1 with stackoverflow error