Create detect_array

The program takes another program as an input and check whether the arrays in the program are properly declared or not, and whether they have a balanced parenthesis.