HashedIn by Deloitte interview question

Oops DBMS Array problems Testing qns