SP1716 GSS3 - Can you answer these queries III

Description

You are given a sequence A of N (N

Input Format

N/A

Output Format

N/A