Array Problem 4 Custom Solution