Natera interview question

Pretty common coding challenges on array, hash map.