You are given an array of length . You are also given tasks.
Each task is of the following type:
L R V: Apply the bitwise-and operator with V for all
You need to print the array after performing all the tasks.
Input format
Output format
Print the final array after performing all the tasks.
Constraints
After first task, the array will be {4,4,4,7,7}.
After second task, the array will be {4,4,4,6,6}.