First line: sorted space-separated array. Second line: target. Print index or -1.
How checking works
Your code runs remotely with each test's input on stdin. Output is compared to the expected answer. All tests must pass on submit to earn XP.