Minor cleanup.

* Adding unit test for the interval question.
* Adding comment.
* Cleaning the coding style a bit.
Merge pull request #2 from jeeyoungk/jee-level1-add-test

Minor cleanup of the interval question