Programs related to arrays and strings