Pergunta de entrevista da empresa Zagaran

writing a function to print out certain outputs based on conditions