Pregunta de entrevista de Apple

core Java and 2 coding questions 1) two sum 2) reverse a string and oops concepts