Interview Preparation. Coded in Java.