Walmart·Mobile Engineer·Technical Phone Screen
- Given a list of structs each containing a type, an id, and a num field, return a mapping from type to the sum of all num values and a list of (id, num) pairs sorted by num.
“Took me a minute to even figure out what data structure to return.”