“Jesse, you asked me if I was in the meth business, or the money business… Neither. I’m in the empire business.”
Walter’s sold his stack in Gray Matter Technologies, a company which he deserved half a credit, for peanuts. Now this company is worth a billion dollar company. Walter wants to get it's shares to have his Empire Business back and he founds an opportunity.  
There are $N$ persons having shares $A_1, A_2, A_3, … A_N$ in this company. Walter can buy these shares with their minimum Sold Values. 
Sold Values of a person's share $ i $ $(1 \leq i \leq N) $ with another person's share $ j $ $ (1 \leq j \leq N) $ is equal to $ A_j+|i-j| $. So, a person's share can have $ N $ possible sold values and Walter has to find minimum sold value among them for each person.
Since Walter has to run his meth business also he asks you to find minimum sold value for each person.

-----Input:-----
- First line will contain $T$, number of test cases. Then the testcases follow. 
- The First line of each test case contains a integer $N$.
- The Second line of each test case contains $N$ space integers namely $A_1,A_2,…A_N$.

-----Output:-----
For each test case, output in single line $N$ space integers denoting minimum sold value for each person.

-----Constraints-----
- $1 \leq T \leq 10^5$
- $1 \leq N \leq 2*10^6 $
- $1 \leq A_i \leq 10^9 $
Sum of $N$ over all test cases will not exceed $2*10^6$.

-----Sample Input:-----
2
5
6 5 5 5 2
5
1 2 3 4 5

-----Sample Output:-----
6 5 4 3 2
1 2 3 4 5

-----Explanation-----
For first case:
- Sold value for index $1$:  $6,6,7,8,6$
- Sold value for index $2$:  $7,5,6,7,5$
- Sold value for index $3$:  $8,6,5,6,4$
- Sold value for index $4$:  $9,7,6,5,3$
- Sold value for index $5$:  $10,8,7,6,2$
Minimum sold value for each index will be $6,5,4,3,2$.

```python

USER_FILENAME = "<user_code>"
import sys, json, builtins
import math, heapq, bisect, itertools, functools, collections, statistics, fractions, decimal, operator, array, random, re, string, os, pathlib
try:
    import resource as _res
except Exception:
    _res = None
from collections import Counter, defaultdict, deque, OrderedDict
from functools import lru_cache, reduce
from itertools import accumulate, permutations, combinations, product
from math import gcd, ceil, floor, sqrt
from decimal import Decimal
try:
    from typing import *
except Exception:
    pass
try:
    sys.setrecursionlimit(1_000_000)
except Exception:
    pass
try:
    import site as _site
    try:
        _sys_sites = _site.getsitepackages() if hasattr(_site, "getsitepackages") else []
        for _p in _sys_sites:
            if _p and _p not in sys.path:
                sys.path.append(_p)
    except Exception:
        pass
    try:
        _usp = _site.getusersitepackages()
        if isinstance(_usp, str):
            _usp = [_usp]
        for _p in _usp:
            if _p and _p not in sys.path:
                sys.path.append(_p)
    except Exception:
        pass
except Exception:
    pass

ns = {"__name__": "__main__"}
for _k, _v in list(globals().items()):
    if not _k.startswith("_"):
        ns[_k] = _v
_CODE = "t=int(input())\nfor t1 in range(0,t):\n n=int(input())\n a=list(map(int,input().split()))\n left=[]\n right=[]\n for i in range(0,n):\n  if i==0:\n   left.append((a[i],i))\n  else:\n   if a[i]< (left[-1][0]+left[-1][1]+1):\n    left.append((a[i],0))\n   else:\n    left.append((left[-1][0],left[-1][1]+1))\n\n right=[]\n for i in range(n-1,-1,-1):\n  if i==n-1:\n   right.append((a[i],0))\n  else:\n   if a[i]< (right[-1][0]+right[-1][1]+1):\n    right.append((a[i],0))\n   else:\n    right.append((right[-1][0],right[-1][1]+1))\n \n right=right[::-1]\n #print(left)\n #print(right)\n final1=[]\n for i in range(0,n):\n  final1.append(min(left[i][0]+left[i][1],a[i]))\n final2=[]\n for i in range(0,n):\n  final2.append(min(right[i][0]+right[i][1],a[i]))\n\n ans=[]\n for i in range(0,n):\n  ans.append(min(final1[i],final2[i]))\n print(*ans)\n\n '''l=a[::]\n    for i in range(1,n):\n     a[i]=min(a[i],a[i-1]+1)\n\n    for i in range(n-2,-1,-1):\n     a[i]=min(a[i+1]+1,a[i])\n\n    if a!=ans:\n     print(l)\n     print(a)\n     #print(left)\n     #print(right)\n     print(ans)\n     print()\n    print(a)\n    print()\n    for i in range(1,n):\n     a[i]=min(a[i],a[i-1]+1)\n\n    for i in range(n-2,-1,-1):\n     a[i]=min(a[i+1]+1,a[i])\n    print(*a)'''"
_co = compile(_CODE, USER_FILENAME, "exec")
exec(_co, ns, ns)

```

Measured memory_bytes: 14145