Ordway Labs Interview Question

Hash map Question and logical question