Pergunta de entrevista da empresa Green Action Studio

Some basic coding questions, asking you to write a function to calculate the area