Pregunta de entrevista de UiPath

asked to solve multiple algorithmic problems