# Week 1 - Nth Digit

# Description

Find the nth digit of the string that include integer sequence: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, ..., 30

FYI: 17, 18 is a number which contains 2 digits: (1, 7) and (1, 8), which combine into string: "1718"

# Specification

Input Output
Integer in range 1 <= n <= ....? (Figure it out by yourself) A digit that corresponds to an nth digit of the string that include integer sequence.
If the nth is out of range of string, just print "Out of Range"

# Sample Input / Output

Input Output
0 Out of Range
1 1
2 2
9 9
10 1
11 0
12 1
13 1
999 Out of Range
🕑: 9/4/2022, 2:32:20 PM