Domanda di colloquio di LexCheck

Was asked to solve two coding problems