quantity control and expiration date

I am taking a professional aptitude test of a smart fridge.
As for the code, I have questions about how I can control the quantity of products and their expiration date.
I would like to know if there is a command or set of commands that can manage this same information.

Also here

Joao_Flores:
I am taking a professional aptitude test of a smart fridge.

That does not make sense - fridges are not smart enough to need aptitude tests - and I cannot figure out what it might be intended to mean.

As for the code,

Why would there be code in an aptitude test?
What might the code be supposed to do?
What computer is it expected to run on?
What language will it be written in?

I have questions about how I can control the quantity of products and their expiration date.
I would like to know if there is a command or set of commands that can manage this same information.

How long is a piece of string?

You have given no details about the products or how they could be identified.

I have no idea what you have in mind when you say "command or set of commands".

And perhaps most importantly, you have not even said whether there is a role for an Arduino.

...R