I was running a simple for each loop using Array[T], created a variable and stored the values {1,2,3,4,5,6] in it, created a for each and for the array and storing the output to Write Line. When i ran i got some weird output (1,2,3,4,6,5). (5 and 6) got misplaced. But when I am running them in debug mode, the output is getting printed as expected.