A slot is a narrow opening into which something can be fitted, such as a…