Pregunta de entrevista de Eurofins

I found difficult que in java..rest all are easy