Postgresql Find Index Of Array Matlab Grader