Pergunta de entrevista da empresa Masai School

2 puzzle related questions were asked.