In your HackerRank Tests, for coding Questions, you can download the sample input and output values for reference by clicking the Download sample test cases link as shown below.
The input and output values are downloaded in separate text files, and each contains the values defined in the Sample test cases of the coding question.
The input values are downloaded in raw format. For example, if the input values are array elements, then the input file will contain the array size followed by the array elements as input.
Refer to the Custom input values format topic for detailed information.
Note: You can download the sample input and output values only if your test setter has defined Sample test cases for the coding question.