Want to solve this problem? Login now to get access to solve the problems

Problem

Submissions

Solution

Leaderboard

Coming soon

0

Difficulty: EASY

Avg. time to solve

15 min

Success Rate

90%

Problem Statement

Suggest Edit

```
The first line contains a single integer T representing the number of test cases.
Each test case consists of:-
Line 1: Integer N
Line 2: N integers separated by a space.
Line 3: Integer K
```

```
For each test case, just make the changes in the array.
```

```
1 <= T <= 10
1 <= N <= 10000
1 <= K <= 31
Time Limit: 1 sec
```

```
1
4
1 2 3 4
1
```

```
2 4 3 1
```

Want to solve this problem? Login now to get access to solve the problems