Actual Question is:


#1

Count the total no doors open.
expected time and space complexity: O(1)