Pregunta de entrevista de NEWJ

Write pseudocode for a given problem (cannot write the actual question. )