A slot is a narrow opening, especially a passage or channel in an object, for…