Infineon Technologies interview question

Java oops concepts.some medium coding question on strings .And later on about projects