YA book about a male protagonist who when asked to stick a hand inside the box, sticks the test proctor's hand in instead
I read this book probably around 2012 to 2018 but not exactly sure when since I read a lot of books during that time frame. Got it from my school library, don't remember the name, any character names, page amount, title, author nothing. I think it was a YA sci-fi type novel but not sure. It was probably newer rather than older (2000s+?). But here's the extent to what I do recall:
The most vivid detail I remember is in the title where the male protagonist who is undergoing some sort of test for a government or a secret program (not sure exactly what it was) is asked to place a hand inside a box. Normally the test is supposed to see if the person can make a rational decision under pressure by sticking in your non-dominant hand into an unknown location instead of the dominant hand. However, the protagonist makes an unfounded decision to instead grab the proctor's hand and stick it inside instead which was completely unexpected. The protagonist solves all of the tests in a similar fashion and exceeds expectations compared to his peers. I'd like to imagine that he was pitted against his peers but I can't be certain on that detail.
I don't remember if it was a series or not, a memory just triggered about it since the recent Artemis II mission, but I don't remember the name of the book.