Array Interview Coding Problems In Java