'Protect whole column of google sheet using app script automatically

How to protect the whole column every day in order using the app script. For Example: On day 1: Protect col A, On day 2: Protect col B... etc



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source