Flatiron Health Interview Question

there were two leetcode mediums