Alice and Bob are playing a game on a binary string
of length .
Alice and Bob alternate turns, with Alice going first. On their turn, the current player must choose any index such that and erase either or from the string. This reduces the length of by one, and the remaining parts of are concatenated in the same order.
The player who is unable to make a move loses.
Determine the winner if both players play optimally.
Input Format
- The first line of input contains a single integer denoting the number of test cases. The description of test cases follows.
- The first line of each test case contains a single integer , the length of the string.
- The second line contains the binary string of length .
Output Format
For each test case output if Alice wins the game, otherwise output . The output is not case-sensitive, so for example "Bob", "boB" and "Bob" are all considered equivalent.
Constraints
- is a binary string
- Sum of over all test cases does not exceed .
Sample Input 1
3
4
1111
3
110
4
1010
Sample Output 1
Bob
Alice
Bob
Explanation
Test Case : There is no such index such that . So, Alice does not have any move and loses, making Bob the winner.
Test Case : Alice can choose (because and ) and remove . After this move, the remaining string is "". Bob now has no moves and thus loses.
ConversionConversion EmoticonEmoticon