Pergunta de entrevista da empresa Altair Semiconductor

Some coding questions. Which was Ok