Need Help in GEHA2018 contest problem Just Arrays (GEHA1806)

can anyone help me to solve this problem ? what is approach to solve this problem ?
question link : https://www.codechef.com/GEHA2018/problems/GEHA1806

editorials will be posted soon.

1 Like