You need to find the state of the 'k'th switch/bulb (1
Expected O(1) time and space complexity.
"Gebo" means to "give and take". This is my attempt to share the knowledge & experience with the community. Focus on Puzzles, Algorithms, Problem Solving, Java & other Technical Discussions.