백준 2920번 (음계, C++) [BAEKJOON]

백준(BAEKJOON) 2920번 ‘음계’ 문제에 대한 글입니다. 인덱스와 값의 관계로 오름차순과 내림차순을 구별하여 해결하였습니다. (This is an article on the ‘tune scale’ problem in BAEKJOON 2920. Due to the relationship between the index and the value, the ascending and descending order were distinguished and resolved.)