Find Ith Bit Of A Number Leetcode Python