I tried to work on the problem
Let $(X_n)$ be a sequence of independent random variables with $E[X_n]=\mu$ and $Var[X_n]=n$ for every $n \in \mathbb{N}$. Find the statistic of the form $\sum_{i=1}^nw_iX_i$, where $w_1,\cdots,w_n$ are non-negative numbers that add up to 1, that has the smallest possible variance.
I really have no idea how to solve this problem. I know that if $X_n$ are iid, then $\bar{X}_n$ has the smallest variance but in this case $X_n$ are not iid.