A slot is a position in a group, series, sequence, or set. A slot can…