I figured out why everyone is getting confused with the IDL. The logic applied by everyone is correct, but where we go wrong is interpreting the question. I did that wrong too.
Going east to west(or coming from east) does not mean 179E to 179W. It actually means that you are flying a WESTERLY HEADING and therefore are going from 179W to 179E( or you can imagine Alaska to Russia).