prepare for interview problems in Java