Driver Code
public static void main ( String args [ ] ) { int n = 15 , k = 3 ; int ans = FindIndexKthBit ( n , k ) ; if ( ans != - 1 ) System . out . println ( ans ) ; else System . out . println ( " No ▁ k - th ▁ set ▁ bit " ) ; } }