Basic

14.31%

Given an array A[], your task is to do some operations, i.e., search an element, insert an element, and delete an element by completing the functions. Also, all functions should return

**Input:**

First line of input consists if T, number of test cases. First line of every test case consists of an integer N, denotes the number of elements in an array. Second line of every test cases consists of N spaced integers Ai. Third line of every test case consists of three integers X ,Y , Yi and Z, denoting the elements for search operation, insert operation , insert opearion element inedx and delete operation respectively.

**Output:**

Return 1 for each operation if done successfully else 0.

**Constraints:**

1<=T<=100

1<=N<=100

1<=Ai<=100

**Example:
Input:**

1

5

2 4 1 0 6

1 2 2 0

1 1 1