Given a sorted 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.
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 and Z, denoting the elements for search operation, insert operation and delete operation respectively.
Return 1 for each operation if done successfully else 0.
1 2 3 4 5
1 6 3
1 1 1