Verizon interview question

Onsite interview with the hiring team. 1- String manipulation 2. Array mathematical problem