Peech (Israel) Interview Question

Some leetcode question - array sort index