Calsoft interview question

prepare java well and dsa array and strings are enough