Compute maximum score using up to 3 categories | Meta Interview Question