Identify the time complexity of the following code as constant, linear, quadratic, cubic, log(n), nlog(n) or NP-hard. import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.HashMap;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
import java.util.StringTokenizer;
import java.util.Map;
import java.util.Map.Entry;
import java.io.BufferedReader;
import java.util.Collections;
import java.io.InputStream;

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 *
 * @author Liavontsi Brechka
 */
public class Main
{
    public static void main(String[] args)
    {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        InputReader in = new InputReader(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        F1BlokiRavnoiSummiProstayaRedakciya solver = new F1BlokiRavnoiSummiProstayaRedakciya();
        solver.solve(1, in, out);
        out.close();
    }

    static class F1BlokiRavnoiSummiProstayaRedakciya
    {
        InputReader in;
        Map<Long, List<F1BlokiRavnoiSummiProstayaRedakciya.Block>> sums;

        public void solve(int testNumber, InputReader in, PrintWriter out)
        {
            this.in = in;

            int n = ni();
            long[] a = nla(n);

            sums = new HashMap<>();
            for (int i = 0; i < n; i++)
            {
                long sum = 0;
                for (int j = i; j < n; j++)
                {
                    sum += a[j];
                    sums.computeIfAbsent(sum, k -> new ArrayList<>()).add(
                                    new F1BlokiRavnoiSummiProstayaRedakciya.Block(i, j, sum));
                }
            }

            for (Map.Entry<Long, List<F1BlokiRavnoiSummiProstayaRedakciya.Block>> e : sums.entrySet())
            {
                Collections.sort(e.getValue());
            }

            List<F1BlokiRavnoiSummiProstayaRedakciya.Block> res = Collections.emptyList();
            for (Map.Entry<Long,... Complexity: