Solve two array and string problems | Bloomberg