Pregunta de entrevista de Deutsche Telekom

1st round questions were based on: API testing question, selenium and java. I was asked to write 2 codes.