Pregunta de entrevista de Pickle Robot

How to do the online coding question