class Square {

    public int[] calculate(int bound) {
        int[] arrSquares = new int[bound];
        for (int i = 0; i < bound; i++) {
            arrSquares[i] = (int) Math.pow(i + 1, 2);
        }
        return arrSquares;
    }

}