Write a Java program that takes a 2D bitmap (represented as a 1D array of integers), and reverses it about its vertical axis.
Sigiloso
I asked the interviewer whether I'm also provided with a width, so that I know how to interpret the data in the 1D bitmap, and he said yes. From a high level, you need a doubly nested for loop: the outer one iterates over the rows, and the inner one iterates over the elements, reversing them as you go along.