Micron Technology interview question

dsa and coding questions. Coding in JAVA