PowerSchool Group Interview Question

Some array related coding question