Programming.com interview question

lifecycle methods , coding question for arrays and string manipulation