Pergunta de entrevista da empresa Searce

There were 2 puzzles asked after tech round