Coding questions and data structures coding in Java