AppleOne interview question

DSA type qs and leet code