Set Kth Bit Leetcode Contest Solution