passed all test cases on Array Operations