Pergunta de entrevista da empresa Apple

Questions on Linux, simple OS, Very simple coding question