Pergunta de entrevista da empresa NiCE

In online tests, they asked to code for calculating parking fee based on some conditions