Why is this question in peer? https://www.codechef.com/problems/SABAR
External contest problems are put into peer only. Correct me If I am wrong.