You are only allowed to make at most 3·n² + 150 queries, whereas the current implementation makes 4·n² + n queries, which exceeds the allowed limit.
You are only allowed to make at most 3·n² + 150 queries, whereas the current implementation makes 4·n² + n queries, which exceeds the allowed limit.