This problem is in Contest(s) below:
Contest 1037:컴퓨터알고리즘 기말 과제용 콘테스트
Contest 1043:데이터구조 첫번째 과제용 콘테스트
Contest 1049:소프트웨어융합학과 자료구조 과제물 #1(배열, 스택, 큐)