Pregunta de entrevista de Freelancer

Two Problem solving questions algorithm