Domanda di colloquio di Freelancer

Two Problem solving questions algorithm