Driver Code
public static void Main ( ) { int n = 15 , k = 3 ; int ans = FindIndexKthBit ( n , k ) ; if ( ans != - 1 ) Console . WriteLine ( ans ) ; else Console . WriteLine ( " No ▁ k - th ▁ set ▁ bit " ) ; } }