The question was simple, needed to write implementation classes for two given interfaces with methods defined.
Needed to do some calculations only but the question was lengthy. I solved the question but then the interviewer asked that my output was not in order to which I replied that it was not mentioned in the problem statement. He then told me that it was intentional and I had to clarify that up.
IPackage{
void addPackage(Pack pack);
rvoid emovePacjage(int id);
int getTotalWeight();
Map<String, Integer> getPackages();
Map<String, Integer> categoryWeight();
}
I forgot the other interface but that just the class definition.
Coding was simple but was lengthy. Time management was important.
Good luck if you face the same quetion, don't forget to ask clarification questions from the interviewer.