Pergunta de entrevista da empresa Granular

Write a function that converts between different units of measurement.