added solution for convert array problem
added solution for convert array problem