Easy Task

Input will start with an integer n ( size of the array ). The next line there will be n space sperated integers. The next line will be q ( number of queries ). Following q lines there will be queries of type 1 or type 2.


This is a companion discussion topic for the original entry at https://toph.co/p/easy-task