HomeHackerRank Python Day 29 : Bitwise AND | HackerRank 30 Days of Code Solutions byArth •October 28, 2021 0 Code:#!/bin/python3import mathimport osimport randomimport reimport sysT = int(input().strip())for _ in range(T): n , k = map(int , input().split()) print(k-1 if ((k-1) | k) <= n else k-2) Tags: HackerRank HackerRank 30 Days of Code