Natera Interview Question

Pretty common coding challenges on array, hash map.