Liutauras Vilda wrote:Welcome to the Ranch.
Please answer to the next questions, so someone could actually help you:
1. What it prints?
1.1 What you expect it to print?
2. What it stores?
2.1 What you expect it to store?
Please also give us example of input and output.
sorry I missed that part I am adding output
Output:
123
132
213
231
321
312
["123", "123", "123", "123", "123", "123"]
Expected Output:
123
132
213
231
321
312
["123", "132", "213", "231", "321", "312"]