C Program Array Takes More Input Than It Should Stack Overflow

C Program Array Takes More Input Than It Should Stack Overflow